#ifndef PIKMEN_ENEMY_H
#define PIKMEN_ENEMY_H

#include "CSurface.h"
#include "Character.h"
#include "Behavior/AllBehavior.h"

#include "Animation.h"

#include <SDL/SDL.h>
#include <vector>

#define LIFE_ENEMY 80

using namespace std;

class PikmenEnemy : public Character {
  protected:
    vector<Animation *>animations;
    // Animation *animations;
    Animation *currentAnimation;
    Uint32 _animation_oldtime;
    //Para el estado
    enum MEstado { WAITING, SEEK_PLAYER, CORRER , ATACAR } estado;
    Character* player;

    long timeRecover;
    long oldTimeRecover;

  public:
    SDL_Surface* carita;

    PikmenEnemy();

    bool OnInit(Character* target=NULL);
    bool OnInit(vector<Character*>* ch,vector<Obstacle*>* ob,int posX, int posY,Character* target=NULL);
    void OnRender(SDL_Surface* display);
    void OnLoop(long time);
};

#endif
